{template "content","header"}
<link href="{CSS_PATH}download.css" rel="stylesheet" type="text/css" />
<div class="main">
	<div class="col-left">
    <div class="crumbs">
      <a href="{siteurl($siteid)}">首页</a><span> &gt; </span>{catpos($catid)}{$title}
    </div>


<?php
function leftmenu($rootid){
    ?>
    {pc:content action="category" catid="$rootid" siteid="$siteid" order="listorder ASC"}
      {loop $data $r}
      <?php
      if(count($data) == 0){
      return;
      }
      $c = $r['arrchildid'];
      $c = explode(',',$c);
      if(count($c) != 1){
      ?>
      <li onmouseover="displaySubMenu(this)" onmouseout="hideSubMenu(this)">
      <a href="{$r[url]}">{$r[catname]}</a>
      <ul  class="left_submenu">
      <?php menu($r['catid']);?>
      </ul>
      </li>
      <?php
      }else if(count($c) == 1){
      ?>
      <li><a href="{$r[url]}">{$r[catname]}</a></li>
      <?php
      }
      ?>
      {/loop}
      {/pc}
      <?php 
      }
?>
{pc:get sql="select * from phpcms_category where catid in($catid)" return="data"}
        <?php $parentid = intval($data[0]['parentid']);?>
    {/pc}
<li style="border-radius: 4px 4px 0 0;width: 190px;list-style:none;
border-bottom: 1px solid white;
background-color: #356CB6;
height: 40px;
line-height: 40px;
text-indent: 2em;font-size:20px;color:#fff;
color: white;
font-weight: bold;
font-size: 20px;">
{$CATEGORYS[$parentid]['catname']}</li>
<div class="left_menu">
 <ul><li>
    <?php leftmenu($parentid);?>
</ul>  
</div> 





    <div class="box boxsbg">
      
      <div class="contents" style="min-height:600px;border:1px solid blue">
        <h5 class="tit">下载简介</h5>
          <div class="down_intro">
            <h4 class="tits">{$title}</h4><!-- 简介标题 -->
            {$content}<!-- 简介内容 -->
          </div>
        <h5 class="tit">下载地址</h5>
          <div class="down_address divl wrap">
            <ul class="l xz_a wrap blue">
        			{loop $downfiles $r}
        	        	<li>{$r}</li>
        			{/loop}			
          	</ul>
          </div>
      </div>


    </div>
    </div>
</div>
{template "content","footer"}